#include <sharedMemory.h>

struct sharedMem *smem = (struct sharedMem *)SHARED_MEM_START;

int getPosX(){
    WAIT_UNTIL_UNLOCK
    return smem->posX;
}

int getPosY(){
    WAIT_UNTIL_UNLOCK
    return smem->posY;
}

void setPosX(int posX){
    smem->posX = posX;
}

void setPosY(int posY){
    smem->posY= posY;
}
